<?php
/**
 * Created by PhpStorm.
 * User: hehecat
 * Date: 2018/10/9
 * Time: 10:54
 */

namespace app\api\model;


use think\Db;
use think\Model;

class SearchModel extends Model {
    public function getActivityBySearch($arg) {

    }

    public function getClubBySearch($arg) {

        $res = Db::name('club')
            ->where('clubname', 'like',"%$arg%")
            ->select();

        return $res;
    }
}